﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SoundUtl
{
    public static void PlayDestroyPlaceSound(ushort id,Vector3 pos)
    {
        if (id < 3)
        {
            Utl.instance.PlaySound("泥土", false, 1, false, 50, pos);
        }
        else if (id > 2 && id < 10)
        {
            Utl.instance.PlaySound("石头", false, 1, false, 50, pos);
        }
        else if (id == 1 || id == 13)
        {
            Utl.instance.PlaySound("草", false, 1, false, 50, pos);
        }
        else if (id == 12)
        {
            Utl.instance.PlaySound("木头", false, 1, false, 50, pos);
        }
    }
}
